<template>
    <view class="loading-state">
      <view class="loading-spinner"></view>
      <text class="loading-text">{{ text }}</text>
    </view>
  </template>
  
  <script>
  export default {
    name: 'LoadingState',
    props: {
      text: {
        type: String,
        default: '加载中...'
      }
    }
  };
  </script>
  
  <style lang="scss" scoped>
  .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60rpx 0;
  }
  
  .loading-spinner {
    width: 60rpx;
    height: 60rpx;
    margin-bottom: 20rpx;
    border: 6rpx solid #f3f3f3;
    border-top: 6rpx solid #3c8dbc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .loading-text {
    font-size: 28rpx;
    color: #999;
  }
  </style>